/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.behavioral.command;

/**
 *
 * @author jmg
 */
public class EncenderServer implements Command{

   private Server server;

    public EncenderServer() {
    }

    public EncenderServer(Server server) {
        this.server = server;
    }
    
    
   
    public void execute() {
        server.conectar();
        server.verificarConexion();
        server.guardarLog();
        server.encender();
        server.cerrarConexion();
    }

    @Override
    public void setServer(Server server) {
       this.server = server;
    }
    
}